package com.xtwy.controller;

import com.xtwy.fegin.api.FeginTestService;
import com.xtwy.fegin.api.FeignApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作 者: 侯建军
 * @日 期: 2018/8/4 00:12
 * @描 述:
 * @公 司：山西迅腾伟业
 */
@RestController
public class FeginController {
    @Autowired
    FeginTestService feginTestService;
    @GetMapping("/fegin/order")
    public String getOrder(@RequestParam(defaultValue = "admin",required = false)String name){
        return feginTestService.getOrder(name);
    }
}
